<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


Route::get('/', function () {
    return view('welcome');
});

Route::get('image/{one?}/{two?}/{three?}/{four?}/{five?}/{six?}/{seven?}/{eight?}/{nine?}',
    'CommonController@getImageFromStorage')
;

Route::get('logs', 'LogViewerController@index');


Route::post('ticket/add', 'TicketController@addTicket');
Route::get('ticket/list', 'TicketController@listTickets');

Route::get('user/export', 'PageController@pageExport');
Route::post('user/import', 'PageController@pageImport');




Route::get('user/loginAdmin', 'AdminController@login');


Route::get('user/login.html', 'PageController@pageLogin');
Route::get('user/add_reply.html', 'PageController@pageReply');
Route::post('user/reply', 'PageController@reply');
Route::get('user/ticket_mgmr.html', 'PageController@pageTicketMgmr');
Route::get('user/ticket_info.html', 'PageController@ticketInfo');


//Route::get('user/listTask.html', 'TowerController@pageList');
